﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using TmU220PrintHelperV2d0.Entity;

namespace TmU220PrintHelperV2d0.Interface
{
    public interface IPrinter
    {
        /// <summary>
        /// 发送打印任务项给打印机
        /// </summary>
        /// <param name="taskItem"></param>
        /// <returns></returns>
        bool SendPrintTaskItemToPrinter(PrintTaskItemV2d0 taskItem);
        /// <summary>
        /// 发送字节数组到打印机
        /// </summary>
        /// <param name="bytes">字节指令</param>
        /// <returns></returns>
        bool SendBytes(byte[] bytes);
    }
}
